package sg.edu.nus.iss.team4.action;

import sg.edu.nus.iss.team4.entity.Question;

import com.opensymphony.xwork2.ModelDriven;

public class QuestionAction implements ModelDriven<Question> {
	
	private Question question = new Question();
	
	public String execute() 
	throws Exception {
		return "createQuestion";
	}
	
	public String saveQuestion()
	throws Exception {
		System.out.println(question);
		return "success";
	}

	public Question getModel() {
		return question;
	}

	public Question getQuestion() {
		return question;
	}

	public void setQuestion(Question question) {
		this.question = question;
	}
	
}
